package com.hrh.selectsystem.service;

import com.hrh.selectsystem.model.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hrh.selectsystem.model.vo.admin.AdminVO;
import com.hrh.selectsystem.model.vo.admin.LoginAdminVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author hetongxue
* @description 针对表【admin(管理员)】的数据库操作Service
* @createDate 2024-10-23 11:23:21
*/
public interface AdminService extends IService<Admin> {

    /**
     * 管理员登录
     *
     * @param adminAccount
     * @param adminPassword
     * @param request
     * @return
     */
    LoginAdminVO adminLogin(String adminAccount, String adminPassword, HttpServletRequest request);

    /**
     * 管理员注销
     * @param request
     * @return
     */
    boolean adminLogout(HttpServletRequest request);

    /**
     * 获取当前登录管理员
     * @param request
     * @return
     */
    Admin getLoginAdmin(HttpServletRequest request);

    /**
     * 获取脱敏的登录管理员信息
     * @param admin
     * @return
     */
    AdminVO getAdminVO(Admin admin);
}
